package com.sch.hospital.domain;

import java.time.LocalDate;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 系统公告对象 notice
 * 
 * @author ruoyi
 * @date 2025-06-30
 */
public class Notice
{
    /** 公告ID，自增主键 */
    private Long id;

    /** 公告标题 */
    private String title;

    /** 公告内容 */
    private String content;

    /** 公告图片路径 */
    private String img;

    /** 发布日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date day;

    /** 发布作者 */
    private String author;

    /** 公告类型:0普通公告,1重要公告,2紧急公告 */
    private Long type;

    /** 阅读量 */
    private Long viewCount;

    /** 是否置顶:0不置顶,1置顶 */
    private Long isTop;

    /** 状态:0草稿,1已发布,2已下架 */
    private Long status;

    /** 创建时间 */
    private LocalDate createTime;

    /** 更新时间 */
    private LocalDate updateTime;

    public Notice() {
    }

    public Notice(Long id, String title, String content, String img, Date day, String author, Long type, Long viewCount, Long isTop, Long status, LocalDate createTime, LocalDate updateTime) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.img = img;
        this.day = day;
        this.author = author;
        this.type = type;
        this.viewCount = viewCount;
        this.isTop = isTop;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return title
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置
     * @param title
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取
     * @return content
     */
    public String getContent() {
        return content;
    }

    /**
     * 设置
     * @param content
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 获取
     * @return img
     */
    public String getImg() {
        return img;
    }

    /**
     * 设置
     * @param img
     */
    public void setImg(String img) {
        this.img = img;
    }

    /**
     * 获取
     * @return day
     */
    public Date getDay() {
        return day;
    }

    /**
     * 设置
     * @param day
     */
    public void setDay(Date day) {
        this.day = day;
    }

    /**
     * 获取
     * @return author
     */
    public String getAuthor() {
        return author;
    }

    /**
     * 设置
     * @param author
     */
    public void setAuthor(String author) {
        this.author = author;
    }

    /**
     * 获取
     * @return type
     */
    public Long getType() {
        return type;
    }

    /**
     * 设置
     * @param type
     */
    public void setType(Long type) {
        this.type = type;
    }

    /**
     * 获取
     * @return viewCount
     */
    public Long getViewCount() {
        return viewCount;
    }

    /**
     * 设置
     * @param viewCount
     */
    public void setViewCount(Long viewCount) {
        this.viewCount = viewCount;
    }

    /**
     * 获取
     * @return isTop
     */
    public Long getIsTop() {
        return isTop;
    }

    /**
     * 设置
     * @param isTop
     */
    public void setIsTop(Long isTop) {
        this.isTop = isTop;
    }

    /**
     * 获取
     * @return status
     */
    public Long getStatus() {
        return status;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(Long status) {
        this.status = status;
    }

    /**
     * 获取
     * @return createTime
     */
    public LocalDate getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(LocalDate createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return updateTime
     */
    public LocalDate getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(LocalDate updateTime) {
        this.updateTime = updateTime;
    }

    public String toString() {
        return "Notice{id = " + id + ", title = " + title + ", content = " + content + ", img = " + img + ", day = " + day + ", author = " + author + ", type = " + type + ", viewCount = " + viewCount + ", isTop = " + isTop + ", status = " + status + ", createTime = " + createTime + ", updateTime = " + updateTime + "}";
    }
}
